<?php
/**
 * Here is your custom functions.
 */


/**
 *
 *  1xxx 开头 为免费扭蛋池
 *  2xxx 开头 为卡牌扭蛋池
 *  3xxx 开头 为服装扭蛋池
 *  4xxx 开头 为角色扭蛋池
 *
 *  1xxxx 开头 为星球
 *  2xxxx 开头 为材料
 *  3xxxx 开头 为工具
 *  4xxxx 开头 为角色皮肤
 *  5xxxx 开头 为建筑装饰品
 *  6xxxx 开头 为工厂
 *  7xxxx 开头 为卡牌
 *  8xxxx 开头 为角色
 *  9xxxx 开头 为角色碎片
 *
 */

//---------------物品区间-------------------//
//物品区间
const ITEM_RANGE = [
    '免费奖池' => [
        'range' => [1000, 1999],
        'type' => 1,
    ],
    '卡牌奖池' => [
        'range' => [2000, 2999],
        'type' => 2,
    ],
    '服装奖池' => [
        'range' => [3000, 3999],
        'type' => 3,
    ],
    '角色奖池' => [
        'range' => [4000, 4999],
        'type' => 4,
    ],
    '星球' => [
        'range' => [10000, 10999],
        'type' => 10,
    ],
    '材料' => [
        'range' => [20000, 20999],
        'type' => 20,
    ],
    '工具' => [
        'range' => [30000, 30999],
        'type' => 30,
    ],
    '角色皮肤' => [
        'range' => [40000, 40999],
        'type' => 40,
    ],
    '建筑装饰' => [
        'range' => [50000, 50999],
        'type' => 50,
    ],
    '工厂' => [
        'range' => [60000, 60999],
        'type' => 60,
    ],
    '卡牌' => [
        'range' => [70000, 70999],
        'type' => 70,
    ],
    '角色' => [
        'range' => [80000, 80999],
        'type' => 80,
    ],
    '角色碎片' => [
        'range' => [90000, 90999],
        'type' => 90,
    ]
];

//---------------钓鱼-------------------//
//钓鱼保持时间不通获取鱼的品质不通
const FISH_KEEP_TIME_PROPERTY = [
    [
        '时间区间' => [0, 3],
        '中鱼概率' => [
            1 => 100,
            2 => 0,
            3 => 0,
        ],
    ], [
        '时间区间' => [4, 17],
        '中鱼概率' => [
            1 => 0,
            2 => 100,
            3 => 0,
        ]
    ],
    [
        '时间区间' => [17, 100],
        '中鱼概率' => [
            1 => 0,
            2 => 0,
            3 => 100,
        ]
    ],

];
//---------------图鉴-------------------//
const  DEX_TYPE = [
    '角色' => 1,
    '卡牌' => 2,
    '服装' => 3,
    '鱼类' => 4,
    '建筑装饰品' => 5,
];


//-----------------用户资金----------------------//
//用户资金操作状态
const USER_CAPITAL_STATUS = [
    '增加' => 1,
    '扣除' => 2,
];

//用户资金类型
const USER_CAPITAL_TYPE = [
    '金币' => 1,
    '积分' => 2,
    '钻石' => 3,
    '至臻点' => 4
];

//用户资金来源字段映射
const USER_CAPITAL_TYPE_MAP = [
    '金币' => 'coin',
    '积分' => 'points',
    '钻石' => 'diamond',
    '至臻点' => 'money',
];

//-----------------用户背包----------------------//
const USER_BACKPACK_CATEGORY = [
    '消耗品' => 1,
    '珍贵材料' => 2,
    '加工品' => 3,
    '其他' => 4,
];

//-----------------工厂----------------------//
//工厂初始等级
const INIT_FACTORY_LV = 1;
//建造完成后赠送两份材料
const FACTORY_BUILD_GIVE_MATERIAL = 2;
//工厂初始槽位
const INIT_FACTORY_SEAT = 2;
const FACTORY_STATE = [
    '已购买' => 0,
    '建造中' => 1,
    '待收取' => 2,
    '已完成' => 3,
];
const FACTORY_WORKER = [
    '工作' => 0,
    '休息' => 1,
];

//工厂类型
const FACTORY_BUILD_STATUS = [
    '建造' => 1,
    '升级' => 2,
];


//转大写 production -> PRODUCTION

//生产队列

// 0=队列中 1=生产中 2=待收取 3=已完成
const FACTORY_PRODUCTION = [
    '队列中' => 0,
    '生产中' => 1,
    '待收取' => 2,
    '已完成' => 3,
];

//-----------------商店-----------------------//
const GOODS_TYPE = [
    '服装抽奖卷' => 10
];

const GET_METHOD = [
    '免费' => 0,
    '金币' => 1,
    '积分' => 2,
    '钻石' => 3,
    '至臻点' => 4,
    '服装抽奖卷' => 10,
    '看广告' => 20,
];

//----------------商店类型------------------//
const SHOP_TYPE = [
    '热门商店' => 1,
    '至臻商店' => 2,
    '角色商店' => 3,
    '钻石商店' => 4,
    '限时商店' => 5,
];


//----------------热门商店------------------//


//----------------至臻商店------------------//

const HIGH_SHOP_CONFIG = [
    '每日最大购买次数' => 5,
    '每次间隔时间' => 1,
];

const AD_CHANNEL = [
    '至臻商店' => 1
];

//----------------星愿雕像------------------//

const WISH_TYPE = [
    '任务一' => 1,
    '任务二' => 2,
    '任务三' => 3,
    '任务四' => 4,
];

const WISH_STATUS = [
    '刷新中' => 0,
    '已更新' => 1
];

//刷新时间 10分钟
const WISH_REFRESH_TIME = 600;


//----------------气球旅行------------------//

const TRAVEL_STATUS = [
    '旅行中' => 1,
    '已完成' => 2
];
const TRAVEL_STATE = [
    '未发放' => 0,
    '已发放' => 1
];


//角色数量
const TRAVEL_ROLE_NUM = 3;

//旅行时长
const TRAVEL_TIME = 3 * 60 * 60;

//----------------宇宙列车------------------//
//
const SPACE_TRAIN_CONFIG = [
    '解锁限制' => [
        3 => 1,
        5 => 2,
        7 => 3
    ],
    '任务列表' => [
        '任务一' => 1,
        '任务二' => 2,
        '任务三' => 3
    ],
    '列车状态' => [
        '未发车' => 0,
        '进行中' => 1,
        '已完成' => 2,
    ],
    '领取状态' => [
        '未发放' => 0,
        '已发放' => 1
    ],
];

//----------------好友列表------------------//

const USER_FRIEND_CONFIG = [
    '状态' => [ //发起请求 1已通过 2已拒绝
        '发起请求' => 0,
        '已通过' => 1,
        '已拒绝' => 2
    ],
];

//-----------------扭蛋抽奖----------------------//

//类型 1=免费池 2=卡牌池 3=服装池 4=角色池
const LOTTERY_TYPE = [
    '免费池' => 1,
    '卡牌池' => 2,
    '服装池' => 3,
    '角色池' => 4
];

//-----------------探索章节----------------------//
//导航类型 1=角色 2=服装 3=建筑 4=卡牌 5=鱼类
const EXPLORE_NAV_TYPE = [
    '角色' => 1,
    '服装' => 2,
    '建筑' => 3,
    '卡牌' => 4,
    '鱼类' => 5
];

//探索章节玩家奖励状态 0=未领取 1=已领取
const EXPLORE_REWARD_STATUS = [
    '未领取' => 0,
    '已领取' => 1
];




//-----------------配置值----------------------//
const GAME_CONFIG = [
    '免费奖池保底' => 1001,
    '卡牌奖池保底' => 1002,
    '服装奖池保底' => 1003,
    '角色奖池保底' => 1004,
];


//-----------------二级市场--------------//
//出售类型 0=所有 1=钻石 2=黑金 3=黑卡 4=金卡 5=银卡
const SECOND_MARKET_TYPE = [
    '所有' => 0,
    '钻石' => 1,
    '黑金' => 2,
    '黑卡' => 3,
    '金卡' => 4,
    '银卡' => 5
];




